import pymysql
connection = pymysql.connect('localhost','root','123123','wouniuatm',charset='utf8')
cursor = connection.cursor()
#查询一条记录封装到函数中
def query_one(sql):
    cursor.execute(sql)
    result = cursor.fetchone()
    return result

def query_all(sql):
    cursor.execute()
    result = cursor.fetchall()
    return result

def update_data(sql):
    cursor.execute(sql)
    connection.commit()

def reg():




